package wjl.project.dubbotestshop.DesignMode;

import org.springframework.stereotype.Component;

@Component
public class BankPay implements PayHandler {
    public static final String NAME = "BankPay";
    @Override
    public String payWithQCodeForScan() {
        return "请使用银行卡app扫码支付";
    }
    @Override
    public String payWithScanQCode() {
        return "请打开银行卡app展示付款码";
    }
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("生成银行卡支付");
        PayFactory.RegisterPayMethod(NAME,this);
    }
}
